package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Parent}.dto.${entity}DTO;
import ${package.Parent}.dto.${entity}PageDTO;
import ${package.Parent}.vo.${entity}PageVO;
import ${package.Parent}.vo.${entity}VO;

/**
 * ${table.comment!} 服务类
 *
 * @author ${author} created on ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
	/**
     * ${table.comment!}新增入口
     * @param ${entity?uncap_first}DTO
     * @return
     */
    Boolean add(${entity}DTO ${entity?uncap_first}DTO);

    /**
     * ${table.comment!}分页查询
     * @param page
     * @param ${entity?uncap_first}PageDTO
     * @return
     */
    Page<${entity}PageVO> getPagesByCondition(Page<Object> page, ${entity}PageDTO ${entity?uncap_first}PageDTO);

    /**
     * ${table.comment!}删除
     * @param id
     * @return
     */
    Boolean deleteById(Integer id);

    /**
     * ${table.comment!}详情
     * @param id
     * @return
     */
    ${entity}VO detail(Integer id);

    /**
     * ${table.comment!}修改
     * @param ${entity?uncap_first}DTO
     * @return
     */
    Boolean updateById(${entity}DTO ${entity?uncap_first}DTO);
}
</#if>
